Skip to content

chore: resolve workspace cross-dependencies from source#174

Merged
Reversean merged 1 commit intomasterfrom
chore/fix-cross-dependencies
Mar 17, 2026
Merged

chore: resolve workspace cross-dependencies from source#174
Reversean merged 1 commit intomasterfrom
chore/fix-cross-dependencies

Conversation

@Reversean
Copy link
Member

@Reversean Reversean commented Mar 11, 2026

Closes #173

Summary

  • Add resolve.conditions: ['source'] to packages/javascript vite and vitest configs, and packages/sveltekit vite config — so Vite/Vitest resolve cross-workspace imports from TypeScript source instead of dist/
  • Bundle @hawk.so/core into @hawk.so/javascript output instead of externalizing it (core is not published to npm separately yet)
  • Add AGPL-3.0-only to the license allow list in rollup-plugin-license since core shares the same license

Result

build:modified and test:modified now work from a clean checkout with no pre-built dist/ in any workspace.

@Reversean Reversean force-pushed the chore/fix-cross-dependencies branch from 7418c75 to 4b16d8c Compare March 11, 2026 13:57
@Reversean Reversean force-pushed the chore/fix-cross-dependencies branch from 0831b1c to 032d2ab Compare March 17, 2026 09:14
- packages/javascript:
  - bundle @hawk.so/core instead of externalizing it
  - add AGPL-3.0-only to license allow list
  - add resolve.conditions: ['source']
- packages/sveltekit:
  - add resolve.conditions: ['source']
- packages/sveltekit/playground:
  - add resolve.conditions: ['source']
@Reversean Reversean merged commit f55bce1 into master Mar 17, 2026
3 checks passed
@Reversean Reversean deleted the chore/fix-cross-dependencies branch March 17, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build/test fails on clean env for workspaces with cross-dependencies

3 participants